package com.cxs.controller.admin;

import com.cxs.base.BaseRequest;
import com.cxs.base.BaseResult;
import com.cxs.dto.admin.log.GetLogListDTO;
import com.cxs.dto.admin.log.GetLogListReqDTO;
import com.cxs.enums.CurrencyErrorEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
import java.util.List;

/*
 * @Project:cxs-currency-sys-server
 * @Author:cxs
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
@RestController
@RequestMapping("/admin/monitor")
@Api(tags = "管理员监控控制器")
public class AdminMonitorController {

    @PostMapping("/getMonitorList")
    @ApiOperation("查询监控列表处理器")
    public BaseResult getLogList(@RequestBody @Validated BaseRequest req, HttpServletRequest request){
        BaseResult result = BaseResult.ok();
        System.out.println("参数：pageNum=" + req.getPageNum() + ",pageSize=" + req.getPageSize());
        List<String> voList = Arrays.asList("MySQL", "Redis", "oracle");
        result.setData(voList);
        return result;
    }
}
